﻿namespace Basic.WxService.ConstDic
{
    internal class WxPlatformEventDic
    {
        /// <summary>
        /// 更新授权
        /// </summary>
        public const string UpdateAuthorized = "updateauthorized";

        /// <summary>
        /// 授权
        /// </summary>
        public const string Authorized = "authorized";

        /// <summary>
        /// 验证票据
        /// </summary>
        public const string ComponentVerifyTicket = "component_verify_ticket";
        /// <summary>
        /// 取消授权
        /// </summary>
        public const string CancelAuthorized = "unauthorized";

        public static bool Check (string type)
        {
            return type != WxPlatformEventDic.Authorized &&
                type != WxPlatformEventDic.ComponentVerifyTicket &&
                type != WxPlatformEventDic.CancelAuthorized &&
                type != WxPlatformEventDic.UpdateAuthorized;
        }
    }
}
